<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <input data-rule="required" class="form-control" name="row[type]" value="2" type="hidden">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" data-rule="required" class="form-control" name="row[price]" type="number" value="{$row.price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Service_start')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-service_start" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[service_start]" type="text" value="{$row.service_start}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Service_end')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-service_end" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[service_end]" type="text" value="{$row.service_end}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Store_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-store_ids" data-rule="required" data-source="room/index" data-multiple="true" data-field="room_name" data-format-item="{store_name} - {room_name}" class="form-control selectpage" name="row[store_ids]" type="text" value="{$row.store_ids|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">卡时长:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-total_hour" data-rule="required" class="form-control" name="row[total_hour]" type="number" value="{$row.total_hour}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">已经消费时长:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-hasconsumedhour" data-rule="required" class="form-control" name="row[hasconsumedhour]" type="number" value="{$row.hasconsumedhour}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_way')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-pay_way" data-rule="required" class="form-control selectpicker" name="row[pay_way]">
                {foreach name="payWayList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.pay_way"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Dzmt')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dzmt" class="form-control" name="row[dzmt]" type="text" value="{$row.dzmt}" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Transaction_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-transaction_id" data-rule="" data-source="transaction/index" class="form-control selectpage" name="row[transaction_id]" type="text" value="{$row.transaction_id|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
